package com.ftg.product.kucun.service;

import com.ftg.product.kucun.mapper.ChukuMapper;
import com.ftg.product.kucun.mapper.RukuMapper;
import com.ftg.product.kucun.pojo.Chuku;
import com.ftg.product.kucun.pojo.Ruku;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zwl
 * Create on 2019/5/7 13:46
 * function
 */
@Service
public class RukuService {
    @Autowired
    RukuMapper cm;
    public List<Ruku> showall(Ruku pageH){
        List<Ruku> list=cm.showall(pageH);
        return list;
    }
    public int insert(Ruku ruku)
    {
        return cm.insert(ruku);
    }
    public int update(Ruku ruku)
    {
        return cm.update(ruku);
    }
    public  int delete(String rid)
    {
        return cm.delete(rid);
    }
    public List<Ruku> show(Ruku pageH){
        List<Ruku> list = cm.show(pageH);
        // pageH.setData(list);
        return list;
    }
}
